package com.nuanshui.heatedloan.credit.dal.mapper;


import com.nuanshui.heatedloan.credit.form.CustomerBaseInfoForm;
import com.nuanshui.heatedloan.credit.vo.CustomerBaseInfoVO;
import org.apache.ibatis.annotations.Param;

public interface CustomerBaseInfoMapper {
	   /***
	    * 新增用户基本信息
	    * @param customerBaseInfoForm
	    */
       void saveCustomerBaseInfo(CustomerBaseInfoForm customerBaseInfoForm);
	   
	   /***
	    * 修改用户基本信息
	    * @param customerBaseInfoForm
	    */
       void updateCustomerBaseInfo(CustomerBaseInfoForm customerBaseInfoForm);
	   
	   /***
	    * 获取用户基本信息
	    * @param id
	    * @return
	    */
       CustomerBaseInfoVO loadVO(@Param("id") String id);
	   
	   /***
	    * 删除用户基本信息
	    * @param id
	    */
       void deleteCustomerBaseInfo(@Param("id") String id);

	/***
	 * 根据用户获取基本信息
	 * @param userId
	 * @return
	 */
    CustomerBaseInfoVO getCustomerBaseInfoByUserId(@Param("userId") String userId);
}
